assert_that(p.cargo_process("publish").arg("--no-verify"),
execs().with_status(0).with_stderr(&format!("\
[UPDATING] registry `{reg}`
+[WARNING] manifest has no documentation, [..]
[PACKAGING] foo v0.0.1 ({dir})
[UPLOADING] foo v0.0.1 ({dir})
",
assert_that(p.cargo_process("publish").arg("-v").arg("--no-verify"),
execs().with_status(101).with_stderr("\
+[UPDATING] registry [..]
[ERROR] all dependencies must come from the same source.
dependency `foo` comes from git://path/to/nowhere instead
"));
assert_that(p.cargo_process("publish"),
execs().with_status(101).with_stderr("\
+[UPDATING] registry [..]
[ERROR] all path dependencies must have a version specified when publishing.
dependency `bar` does not specify a version
"));